﻿using System;
using ClassLibrary.SignalType;

namespace ClassLibrary.Communication
{
    /// <summary>
    /// @Author Marcin Król
    /// </summary>
    [Serializable]
    public class IndexedData
    {
        private readonly Data _data;
        private readonly int _portId;

        public IndexedData(Data data, int portId)
        {
            _data = data;
            _portId = portId;
        }

        public Data Data
        {
            get { return _data; }
        }

        public int PortId
        {
            get { return _portId; }
        }
    }
}
